package com.ssm.service.Impl;

import com.ssm.dao.CustomerDao2;
import com.ssm.pojo.Customer;
import com.ssm.service.CustomerService2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
//客户服务实现类2
@Service
public class CustomerServiceImpl2 implements CustomerService2 {
    @Autowired
    private CustomerDao2 customerDao;

    @Override
    public int insert(Customer customer) {
        return customerDao.insert(customer);
    }

    @Override
    public Customer selectById(String card) {
        return customerDao.selectById(card);
    }
}
